package com.journal.book.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.journal.common.annotation.Excel;
import com.journal.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * book对象 book_shelf_info
 *
 * @author ruoyi
 * @date 2025-11-08
 */
public class BookShelfInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增主键 */
    private Long id;

    /** 图书分类号（如T812/8、G203/1） */
    @Excel(name = "图书分类号", readConverterExp = "如=T812/8、G203/1")
    private String classNo;

    /** 书架ID（如S1、S2） */
    @Excel(name = "书架ID", readConverterExp = "如=S1、S2")
    private String shelfId;

    /** 书架侧面（如A、B） */
    @Excel(name = "书架侧面", readConverterExp = "如=A、B")
    private String sideId;

    /** 书架层数（1-6） */
    @Excel(name = "书架层数", readConverterExp = "1=-6")
    private Long level;

    /** 备注信息 */
    @Excel(name = "备注信息")
    private String note;

    /** 图书/期刊名称 */
    @Excel(name = "图书/期刊名称")
    private String bookName;

    /** 排序序号 */
    @Excel(name = "排序序号")
    private Long sortOrder;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")
    private Date createTime;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setClassNo(String classNo)
    {
        this.classNo = classNo;
    }

    public String getClassNo()
    {
        return classNo;
    }
    public void setShelfId(String shelfId)
    {
        this.shelfId = shelfId;
    }

    public String getShelfId()
    {
        return shelfId;
    }
    public void setSideId(String sideId)
    {
        this.sideId = sideId;
    }

    public String getSideId()
    {
        return sideId;
    }
    public void setLevel(Long level)
    {
        this.level = level;
    }

    public Long getLevel()
    {
        return level;
    }
    public void setNote(String note)
    {
        this.note = note;
    }

    public String getNote()
    {
        return note;
    }
    public void setBookName(String bookName)
    {
        this.bookName = bookName;
    }

    public String getBookName()
    {
        return bookName;
    }
    public void setSortOrder(Long sortOrder)
    {
        this.sortOrder = sortOrder;
    }

    public Long getSortOrder()
    {
        return sortOrder;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("classNo", getClassNo())
            .append("shelfId", getShelfId())
            .append("sideId", getSideId())
            .append("level", getLevel())
            .append("note", getNote())
            .append("bookName", getBookName())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("sortOrder", getSortOrder())
            .toString();
    }
}
